package com.wkbb.basic.mapper;

import com.wkbb.basic.model.TeacherCourse;
import com.wkbb.common.base.BaseMapper;
import com.wkbb.common.dto.basic.ClassInfoDto;

import java.util.List;
import java.util.Map;

public interface TeacherCourseMapper extends BaseMapper<TeacherCourse> {

    /**
     * 根据参数删除任课教师
     * @param params 参数（classId、masterId）
     */
    void deleteCourses(Map<String, Object> params);

    List<ClassInfoDto> getClassInfoByMasterId(Map<String, Object> params);

    List<ClassInfoDto> getClassInfoByFamilyUsserId(Map<String, Object> params);

    void updateCourseGrade(TeacherCourse teacherCourse);

    void updateGrade(Map<String, Object> paramMap);
}